package network.server;

import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.*;

/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author ecavil
 */
public class test extends JFrame {

    public test() {

        
        setSize(300, 500);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
        
        MySQLConnection sql = MySQLConnection.getInstance();
        String[] res = sql.query("image", "time", "1=1");

        this.getContentPane().setLayout(new GridLayout(res.length, 2));

        for (int i = 0; i < res.length; i++) {
            this.getContentPane().add(new JLabel(new ImageIcon("C:\\Users\\ecavil\\Pictures\\test\\"+res[i])));
        }


        setVisible(true);
    }

    public static void main(String[] args) {
        test test = new test();
    }
}
